// silos
const TOP_MALTA = 20;
const LEFT_MALTA = 200;
const TOP_ADJ = 190;
const LEFT_ADJ = 100;

// pipes-silos
const PIPE_DIAMETER = 7
const TOP_PIPE_MALTA = TOP_MALTA + figure.siloSizes.HEIGHT_TOTAL;
const LEFT_PIPE_MALTA = LEFT_MALTA + figure.siloSizes.WIDTH/2;
const WIDTH_PIPE_MALTA = 80;

const HEIGHT_PIPE_MALTA_2 = 100;
const TOP_PIPE_MALTA_2 = TOP_PIPE_MALTA - HEIGHT_PIPE_MALTA_2  +2;
const LEFT_PIPE_MALTA_2 = LEFT_PIPE_MALTA + WIDTH_PIPE_MALTA -7;

const WIDTH_PIPE_MALTA_3 = 120;
const LEFT_PIPE_MALTA_3 = LEFT_PIPE_MALTA_2;
const TOP_PIPE_MALTA_3 = TOP_PIPE_MALTA_2;

const TOP_PIPE_ADJ = TOP_ADJ + figure.siloSizes.HEIGHT_TOTAL;
const LEFT_PIPE_ADJ = LEFT_ADJ + figure.siloSizes.WIDTH/2;
const WIDTH_PIPE_ADJ = 70;

const HEIGHT_PIPE_ADJ_2 = 100;
const TOP_PIPE_ADJ_2 = TOP_PIPE_ADJ - HEIGHT_PIPE_ADJ_2 +2;
const LEFT_PIPE_ADJ_2 = LEFT_PIPE_ADJ + WIDTH_PIPE_ADJ -7;

const WIDTH_PIPE_ADJ_3 = 50;
const LEFT_PIPE_ADJ_3 = LEFT_PIPE_ADJ_2;
const TOP_PIPE_ADJ_3 = TOP_PIPE_ADJ_2;

//tolva
const LEFT_TOLVA_DOSIF_1 = LEFT_PIPE_ADJ_3 + WIDTH_PIPE_ADJ_3;
const TOP_TOLVA_DOSIF_1 = TOP_PIPE_ADJ_3 -10;

// pipe
const WIDTH_PIPE_DOSIF_1_2 = 50;
const LEFT_PIPE_DOSIF_1_2 = LEFT_TOLVA_DOSIF_1 + figure.tolvaSizes.WIDTH;
const TOP_PIPE_DOSIF_1_2 = TOP_PIPE_ADJ_3;

const LEFT_TOLVA_DOSIF_2 = WIDTH_PIPE_DOSIF_1_2 + LEFT_PIPE_DOSIF_1_2;
const TOP_TOLVA_DOSIF_2 = TOP_TOLVA_DOSIF_1;

//dial

const DIAL_TEMP_OFFSET_TOP = 10;
const DIAL_TEMP_OFFSET_LEFT = 20;
const DIAL_WIDTH = 33;
const DIAL_HEIGHT = 12;
const DIAL_SIZE = 10;

const TOP_PIPE_TOLVA = TOP_TOLVA_DOSIF_1 + figure.tolvaSizes.HEIGHT_TOTAL;
const LEFT_PIPE_TOLVA = LEFT_TOLVA_DOSIF_1 + figure.tolvaSizes.WIDTH/2 - 2 ;
const LEFT_PIPE_TOLVA2 = LEFT_TOLVA_DOSIF_2 + figure.tolvaSizes.WIDTH/2 - 2 ;
const HEIGHT_PIPE_TOLVA = 50;
const HEIGHT_PIPE_DOSIF2_1 = 9;
const WIDTH_PIPE_DOSIF_2 = 115;
const HEIGHT_PIPE_DOSIF2 = 45;
const LEFT_PIPE_DOSIF2 = LEFT_PIPE_TOLVA2 - 82;
const LEFT_PIPE_DOSIF2_4 = LEFT_PIPE_TOLVA2 + 28;

const TOP_OLLA_CRUDOS = TOP_PIPE_TOLVA + HEIGHT_PIPE_TOLVA/2 -5;
const LEFT_OLLA_CRUDOS = LEFT_PIPE_TOLVA - LEFT_PIPE_TOLVA/6;

const TOP_PIPE_OLLAS = TOP_OLLA_CRUDOS + figure.ollaSizes.HEIGHT;
const LEFT_PIPE_OLLAS = LEFT_OLLA_CRUDOS + figure.ollaSizes.WIDTH;
const WIDTH_PIPE_OLLAS = 90;

const TOP_OLLA_MEZCLAS = TOP_OLLA_CRUDOS;
const LEFT_OLLA_MEZCLAS = LEFT_PIPE_OLLAS + WIDTH_PIPE_OLLAS;

const TOP_BOMBA_OLLAS = TOP_PIPE_OLLAS-5;
const LEFT_BOMBA_OLLAS = LEFT_PIPE_OLLAS + WIDTH_PIPE_OLLAS/2 -5;

const HEIGHT_PIPE_MEZCLA = 150;
const TOP_PIPE_MEZCLA = TOP_OLLA_MEZCLAS - HEIGHT_PIPE_MEZCLA +35;
const LEFT_PIPE_MEZCLA = LEFT_OLLA_MEZCLAS + figure.ollaSizes.WIDTH -7;

const WIDTH_PIPE_MEZCLA_2 = 80;
const TOP_PIPE_MEZCLA_2 = TOP_PIPE_MEZCLA;
const LEFT_PIPE_MEZCLA_2 = LEFT_PIPE_MEZCLA;

const TOP_BOMBA_MEZCLA = TOP_PIPE_MEZCLA + 2*HEIGHT_PIPE_MEZCLA/3;
const LEFT_BOMBA_MEZCLA = LEFT_PIPE_MEZCLA -5;

const TOP_OLLA_FILTR = TOP_PIPE_MEZCLA_2 -15;
const LEFT_OLLA_FILTR = LEFT_PIPE_MEZCLA_2 + WIDTH_PIPE_MEZCLA_2 - 30;

const TOP_OLLA_COCCION = TOP_OLLA_FILTR + 100;
const LEFT_OLLA_COCCION = LEFT_OLLA_FILTR + 100;

//pipes filtración

const TOP_PIPE_FILTR = TOP_OLLA_FILTR + 79;
const TOP_PIPE_FILTR2 = TOP_OLLA_FILTR + 79;
const HEIGHT_PIPE_FILTR2 = 80;
const TOP_PIPE_FILTR3 = TOP_PIPE_FILTR2 + HEIGHT_PIPE_FILTR2 - PIPE_DIAMETER;
const LEFT_PIPE_FILTR = LEFT_OLLA_FILTR + 10;
const LEFT_PIPE_FILTR2 = LEFT_OLLA_FILTR + figure.ollaSizes.WIDTH*2/3;
const LEFT_PIPE_FILTR3 = LEFT_PIPE_FILTR2;
const HEIGHT_PIPE_FILTR = 100;
const WIDTH_PIPE_FILTR3 = 62;

//afecho

const TOP_AFECHO = TOP_PIPE_FILTR + HEIGHT_PIPE_FILTR;
const LEFT_AFECHO = LEFT_PIPE_FILTR - 17;

//coccion

const TOP_PIPE_OLLA_COCCION = TOP_PIPE_FILTR3;
const LEFT_PIPE_OLLA_COCCION = LEFT_OLLA_COCCION + figure.ollaSizes.WIDTH;
const WIDTH_PIPE_OLLA_COCCION = 50;

const HEIGHT_PIPE_OLLA_COCCION_2 = 250;
const TOP_PIPE_OLLA_COCCION_2 = TOP_PIPE_OLLA_COCCION - HEIGHT_PIPE_OLLA_COCCION_2  +2;
const LEFT_PIPE_OLLA_COCCION_2 = LEFT_PIPE_OLLA_COCCION + WIDTH_PIPE_OLLA_COCCION -7;

const WIDTH_PIPE_OLLA_COCCION_3 = 50;
const LEFT_PIPE_OLLA_COCCION_3 = LEFT_PIPE_OLLA_COCCION_2;
const TOP_PIPE_OLLA_COCCION_3 = TOP_PIPE_OLLA_COCCION_2;

//sedimentacion

const TOP_SEDIMENTATION = TOP_PIPE_OLLA_COCCION_2 - figure.sedimentSizes.HEIGHT/2;
const LEFT_SEDIMENTATION = LEFT_PIPE_OLLA_COCCION_3 + WIDTH_PIPE_OLLA_COCCION_3;

const TOP_TOLVA_SUM = TOP_PIPE_MALTA_3 - 10;
const LEFT_TOLVA_SUM = LEFT_PIPE_MALTA_3 + WIDTH_PIPE_MALTA_3;

const TOP_TAMIZ = TOP_TOLVA_SUM +100;
const TOP_MOLINO = TOP_TAMIZ + 25;
const LEFT_MOLINO = LEFT_TOLVA_SUM - 60;

const TOP_PIPE_SUM = TOP_TOLVA_SUM + 60;
const LEFT_PIPE_SUM = LEFT_TOLVA_SUM + 17;
const HEIGHT_PIPE_SUM = 42;

const TOP_PIPE_TAMIZ = TOP_TAMIZ + 3;
const LEFT_PIPE_TAMIZ = LEFT_TOLVA_SUM - 50;
const WIDTH_PIPE_TAMIZ = 51;
const TOP_PIPE_TAMIZ2 = TOP_TAMIZ + 3;
const LEFT_PIPE_TAMIZ2 = LEFT_PIPE_TAMIZ ;
const HEIGHT_PIPE_TAMIZ2 = 23;

const TOP_PIPE_MOLINO = TOP_MOLINO + figure.molinoSizes.HEIGHT;
const LEFT_PIPE_MOLINO = LEFT_MOLINO - 15;
const WIDTH_PIPE_MOLINO = 30;
const TOP_PIPE_MOLINO2 = TOP_MOLINO + figure.molinoSizes.HEIGHT;
const LEFT_PIPE_MOLINO2 = LEFT_PIPE_MOLINO;
const HEIGHT_PIPE_MOLINO2 = 22;

//pipes sedimentacion

const TOP_PIPE_SEDIMENT = TOP_SEDIMENTATION + figure.sedimentSizes.HEIGHT;
const HEIGHT_PIPE_SEDIMENT = 50;
const TOP_PIPE_SEDIMENT2 = TOP_PIPE_SEDIMENT + HEIGHT_PIPE_SEDIMENT - 5;
const LEFT_PIPE_SEDIMENT = LEFT_SEDIMENTATION + figure.sedimentSizes.WIDTH -20;
const LEFT_PIPE_SEDIMENT2 = LEFT_PIPE_SEDIMENT;
const WIDTH_PIPE_SEDIMENT2= 30;


//enfriamiento

const TOP_COOLING = TOP_PIPE_SEDIMENT2 -5;
const LEFT_COOLING = LEFT_PIPE_SEDIMENT2 + WIDTH_PIPE_SEDIMENT2;

//pipes enfriamiento

const TOP_PIPE_COOLING = TOP_PIPE_SEDIMENT2;
const LEFT_PIPE_COOLING = LEFT_COOLING + figure.coolingSizes.WIDTH;
const WIDTH_PIPE_COOLING= 80;

//tanque fermentación

const TOP_TANK_F = TOP_SEDIMENTATION + 15;
const LEFT_TANK_F = LEFT_PIPE_COOLING + WIDTH_PIPE_COOLING - figure.tankFermSizes.OFFSET;

// pipe etanol

const LEFT_PIPE_ETANOL = LEFT_TANK_F + figure.tankFermSizes.WIDTH*2 + 3;
const TOP_PIPE_ETANOL = TOP_TANK_F + figure.tankFermSizes.HEIGHT_TOTAL/2 +7;
const WIDTH_PIPE_ETANOL = 120;

//valvula 1, 2, 3

const TOP_VALVULA_1 = TOP_TANK_F + figure.tankFermSizes.HEIGHT_TOTAL/4;
const LEFT_VALVULA_1 = LEFT_TANK_F + figure.tankFermSizes.OFFSET*3.5 + figure.tankFermSizes.WIDTH;
const TOP_VALVULA_2 = TOP_TANK_F + figure.tankFermSizes.HEIGHT_TOTAL/2;
const LEFT_VALVULA_2 = LEFT_TANK_F + figure.tankFermSizes.OFFSET*3.5 + figure.tankFermSizes.WIDTH;
const TOP_VALVULA_3 = TOP_TANK_F + 3*figure.tankFermSizes.HEIGHT_TOTAL/4;
const LEFT_VALVULA_3 = LEFT_TANK_F + figure.tankFermSizes.OFFSET*3.5 + figure.tankFermSizes.WIDTH;


//pipes fermentacion

const TOP_PIPE_TANK_F = TOP_TANK_F + figure.tankFermSizes.HEIGHT_TOTAL + figure.tankFermSizes.HEIGHT_BOTTOM +20;
const HEIGHT_PIPE_TANK_F = 30;
const LEFT_PIPE_TANK_F = LEFT_TANK_F + figure.tankFermSizes.WIDTH/2 + figure.tankFermSizes.OFFSET - 5;

//enfriamiento post fermentacion

const TOP_COOLING2 = TOP_PIPE_TANK_F + HEIGHT_PIPE_TANK_F - 5;
const LEFT_COOLING2 = LEFT_PIPE_TANK_F -3;

//pipe enfriamiento post fermentacion

const TOP_PIPE_COOLING2 = TOP_COOLING2 + figure.coolingSizes.WIDTH;
const HEIGHT_PIPE_COOLING2 = 20;
const LEFT_PIPE_COOLING2 = LEFT_TANK_F + figure.tankFermSizes.WIDTH/2 + figure.tankFermSizes.OFFSET - 5;

const TOP_PIPE_COOLING2_2 = TOP_PIPE_COOLING2 + HEIGHT_PIPE_COOLING2 - 5;
const WIDTH_PIPE_COOLING2_2= 180;
const LEFT_PIPE_COOLING2_2 = LEFT_PIPE_TANK_F - WIDTH_PIPE_COOLING2_2 + 5;

//tanque fermentación

const TOP_TANK_M = TOP_PIPE_COOLING2_2 - 15;
const LEFT_TANK_M = LEFT_PIPE_COOLING2_2 - WIDTH_PIPE_COOLING2_2 + figure.tankMadurSizes.OFFSET + figure.tankMadurSizes.WIDTH + 25;


//levadura

const HEIGHT_LEVADURA = 50;
const TOP_LEVADURA = TOP_TANK_F - HEIGHT_LEVADURA + 15;
const LEFT_LEVADURA = LEFT_TANK_F + 40;

const TOP_PIPE_MAD = TOP_TANK_M + figure.tankMadurSizes.HEIGHT_TOTAL + figure.tankFermSizes.HEIGHT_BOTTOM;
const LEFT_PIPE_MAD = LEFT_TANK_M + figure.tankMadurSizes.WIDTH/2 + figure.tankFermSizes.OFFSET - 2;
const HEIGHT_PIPE_MAD = 50;

const TOP_PIPE_MAD2 = TOP_PIPE_MAD + HEIGHT_PIPE_MAD - PIPE_DIAMETER;
const LEFT_PIPE_MAD2 = LEFT_PIPE_MAD;
const WIDTH_PIPE_MAD2 = 100;

const TOP_FILTRO = TOP_PIPE_MAD2 - figure.filtroSizes.HEIGHT_ENDS/2 + PIPE_DIAMETER/2;
const LEFT_FILTRO = LEFT_PIPE_MAD2 + WIDTH_PIPE_MAD2;

const TOP_BOMBA_FILTRO = TOP_PIPE_MAD2 - 4;
const LEFT_BOMBA_FILTRO = LEFT_PIPE_MAD2 - 6;

const TOP_PIPE_A = TOP_FILTRO + figure.filtroSizes.HEIGHT_ENDS/2 - PIPE_DIAMETER/2;
const LEFT_PIPE_A = LEFT_FILTRO + figure.filtroSizes.WIDTH_BODY + figure.filtroSizes.WIDTH_ENDS;
const WIDTH_PIPE_A = 50;

const TOP_PIPE_A2 = TOP_PIPE_A - 80;
const LEFT_PIPE_A2 = LEFT_PIPE_A + WIDTH_PIPE_A - PIPE_DIAMETER;
const HEIGHT_PIPE_A2 = 80 + PIPE_DIAMETER;

const TOP_PIPE_A3 = TOP_PIPE_A2;
const LEFT_PIPE_A3 = LEFT_PIPE_A2;
const WIDTH_PIPE_A3 = 50;

const TOP_TANK_A = TOP_PIPE_A3 - figure.tankMadurSizes.HEIGHT_TOTAL/3;
const LEFT_TANK_A = LEFT_PIPE_A3 + WIDTH_PIPE_A3 - 20;
